﻿package edzis.translatebuddy.model.vo {
	import fl.data.SimpleCollectionItem;
	
	/**
	 * ...
	 * @author DefaultUser (Tools -> Custom Arguments...)
	 */
	public class SearchProfileVO extends SimpleCollectionItem {
		
		private var _id				:int;
		private var _title			:String;
		private var _url			:String;
		private var _icon			:String;
		
		public function SearchProfileVO(title:String = null, url:String = null) {
			if (title && title != "") _title = title;
			if (url && url != "") _url = url;
			
		}
		
		public function get id():int { return _id; }
		public function set id(value:int):void {
			_id = value;
			data = value.toString();
		}
		
		public function get title():String { return _title; }
		public function set title(value:String):void {
			_title = value;
			label = value;
		}
		
		public function get url():String { return _url; }
		public function set url(value:String):void {
			_url = value;
		}
		
		public function get icon():String { return _icon; }
		
		override public function toString():String {
			return "SearchProfileVO :: id = " + id + ", title = " + title;
		}
		
	}
	
}